package com.itheima.mysystem;

public class demo2 {
    public static void main(String[] args) {
        // 获取开始的时间节点
        long start = System.currentTimeMillis();

        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");
        System.out.println("hello");

        // 获取代码运行结束后的时间节点
        long end = System.currentTimeMillis();
        System.out.println("共耗时：" + (end - start) + "毫秒");
    }
}
